package com.ruoyi.business.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.business.mapper.TbBusinessTableMapper;
import com.ruoyi.business.domain.TbBusinessTable;
import com.ruoyi.business.service.ITbBusinessTableService;

/**
 * 桌号Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-02-03
 */
@Service
public class TbBusinessTableServiceImpl implements ITbBusinessTableService 
{
    @Autowired
    private TbBusinessTableMapper tbBusinessTableMapper;

    /**
     * 查询桌号
     * 
     * @param id 桌号主键
     * @return 桌号
     */
    @Override
    public TbBusinessTable selectTbBusinessTableById(Long id)
    {
        return tbBusinessTableMapper.selectTbBusinessTableById(id);
    }

    /**
     * 查询桌号列表
     * 
     * @param tbBusinessTable 桌号
     * @return 桌号
     */
    @Override
    public List<TbBusinessTable> selectTbBusinessTableList(TbBusinessTable tbBusinessTable)
    {
        return tbBusinessTableMapper.selectTbBusinessTableList(tbBusinessTable);
    }

    /**
     * 新增桌号
     * 
     * @param tbBusinessTable 桌号
     * @return 结果
     */
    @Override
    public int insertTbBusinessTable(TbBusinessTable tbBusinessTable)
    {
        return tbBusinessTableMapper.insertTbBusinessTable(tbBusinessTable);
    }

    /**
     * 修改桌号
     * 
     * @param tbBusinessTable 桌号
     * @return 结果
     */
    @Override
    public int updateTbBusinessTable(TbBusinessTable tbBusinessTable)
    {
        return tbBusinessTableMapper.updateTbBusinessTable(tbBusinessTable);
    }

    /**
     * 批量删除桌号
     * 
     * @param ids 需要删除的桌号主键
     * @return 结果
     */
    @Override
    public int deleteTbBusinessTableByIds(Long[] ids)
    {
        return tbBusinessTableMapper.deleteTbBusinessTableByIds(ids);
    }

    /**
     * 删除桌号信息
     * 
     * @param id 桌号主键
     * @return 结果
     */
    @Override
    public int deleteTbBusinessTableById(Long id)
    {
        return tbBusinessTableMapper.deleteTbBusinessTableById(id);
    }
}
